package com.iOS.dto;

import com.iOS.entity.FileInfo;
import com.iOS.enums.FileInfoEnum;

import java.util.List;

/**
 * @Author:WenTao
 * @Description:文件中间返回类
 * @Date:9:47 2018/10/10
 */
public class FileInfoExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*文件记录*/
    private FileInfo fileInfo;
    /*文件记录集合*/
    private List<FileInfo> fileInfoList;

    /*操作失败时的构造器*/
    public FileInfoExecution(FileInfoEnum fileInfoEnum) {
        this.state = fileInfoEnum.getState();
        this.stateInfo = fileInfoEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public FileInfoExecution(FileInfoEnum fileInfoEnum, FileInfo fileInfo) {
        this.state = fileInfoEnum.getState();
        this.stateInfo = fileInfoEnum.getStateInfo();
        this.fileInfo = fileInfo;
    }

    /*操作成功时的构造器*/
    public FileInfoExecution(FileInfoEnum fileInfoEnum, List<FileInfo> fileInfoList) {
        this.state = fileInfoEnum.getState();
        this.stateInfo = fileInfoEnum.getStateInfo();
        this.fileInfoList = fileInfoList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public FileInfo getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(FileInfo fileInfo) {
        this.fileInfo = fileInfo;
    }

    public List<FileInfo> getFileInfoList() {
        return fileInfoList;
    }

    public void setFileInfoList(List<FileInfo> fileInfoList) {
        this.fileInfoList = fileInfoList;
    }
}
